<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https:unpkg.com/vue@next"></script>
</head>
<body>
    <div id="two-way-binding">
        <p>{{ message}}</p>
        <input type="text" v-model="message">
    </div>
</body>
<script>
    const TwoWayBinding = {
        data(){
            return { message:'你好 vue.js!'}
        }
    }
    Vue.createApp(TwoWayBinding).mount('#two-way-binding')
</script>
</html>

<!-- 用指令on-model，展示响应式（你填什么，message就显示什么） -->